import CRUD from '@/utils/request/CRUD';
import { request } from '@/utils/request';
// 设计订单CRUD
export const designOrderCRUD = CRUD('/system/order-designer');

// 设计阶段延期
export function delayeDesignInfo(data: Record<string, any>) {
  return request.post({
    url: '/system/order-designer/delay-design',
    data,
  });
}

// 重新发起合同
export function designToEngineering(data: Record<string, any>) {
  return request.post({
    url: '/system/order-designer/design-to-engineering',
    data,
  });
}

// 退回订单
export function returnOrder(data: Record<string, any>) {
  return request.post({
    url: '/system/order-designer/return-order',
    data,
  });
}

// 获取转设计数据
export function getOrderDesignerData(params: Record<string, any>) {
  return request.get({
    url: '/system/order-designer/enter-designer-page',
    params,
  });
}
